<?php 
	
	if (!isset($images_main_slide['is_error']))
	{
		echo $this->lang->line('lmg_vars_valid');
		return;
	}
	
	// Check if is_error true
	if ($images_main_slide['is_error'])
	{
		echo $images_main_slide['message'];
		return;
	}
	
	// Check images ' data is empty
	if (empty($images_main_slide['images']) || count($images_main_slide['images']) < 1)
	{
		echo $images_main_slide['message'];
		return;
	}
?>

<span class="slide_but"><img src="<?=base_url().$this->config->item('img');?>but_left.png" width="13" height="35" /></span>
<div class="slide_container">
	<div class="slider">
		
		<?php foreach($images_main_slide['images'] as $item) :?>
		<div class="slide_item"><img src="<?=base_url().$this->config->item('fd_main_slide_url').$item;?>" width="160" height="120" /></div>	
		<?php endforeach; ?>	
		
	</div>	
</div>
<span class="slide_but"><img src="<?=base_url().$this->config->item('img');?>but_right.png" width="13" height="35" /></span>
